package com.xyazm.order.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyazm.common.domain.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 订单条目表
 * </p>
 *
 * @author xuyou
 * @since 2022-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "OrderItem对象", description = "订单条目表")
@TableName("order_item")
public class OrderItemDO extends BaseDO implements Serializable {


    @ApiModelProperty(value = "订单编号")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty(value = "订单明细编号")
    @TableField("order_item_id")
    private String orderItemId;

    @ApiModelProperty(value = "商品类型 1:普通商品,2:预售商品")
    @TableField("product_type")
    private Integer productType;

    @ApiModelProperty(value = "商品编号")
    @TableField("product_id")
    private String productId;

    @ApiModelProperty(value = "商品图片")
    @TableField("product_img")
    private String productImg;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "sku编码")
    @TableField("sku_code")
    private String skuCode;

    @ApiModelProperty(value = "销售数量")
    @TableField("sale_quantity")
    private Integer saleQuantity;

    @ApiModelProperty(value = "销售单价")
    @TableField("sale_price")
    private Integer salePrice;

    @ApiModelProperty(value = "当前商品支付原总价")
    @TableField("origin_amount")
    private Integer originAmount;

    @ApiModelProperty(value = "交易支付金额")
    @TableField("pay_amount")
    private Integer payAmount;

    @ApiModelProperty(value = "商品单位")
    @TableField("product_unit")
    private String productUnit;

    @ApiModelProperty(value = "采购成本价")
    @TableField("purchase_price")
    private Integer purchasePrice;

    @ApiModelProperty(value = "卖家编号")
    @TableField("seller_id")
    private String sellerId;

    @ApiModelProperty(value = "扩展信息")
    @TableField("ext_json")
    private String extJson;

}
